import 'package:flutter/material.dart';
import 'package:flutterproject/page/login_all/login/controller/login_controller.dart';
import 'package:flutterproject/page/login_all/login/widget/input_eye.dart';
import 'package:get/get.dart';

class PhonePwdWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final controller = Get.find<LoginController>();
    return Column(
      children: [
        InputEye(
          hint: '请输入手机号',
          isPhone: true,
          controller: controller.phoneController,
          onchange: (value) {
            controller.checkCorrect();
          },
          focusNode: controller.phoneFocusNode,
        ),
        InputEye(
          hint: '请输入登录密码',
          isShowEye: true,
          controller: controller.pwdController,
          onchange: (value) {
            controller.checkCorrect();
          },
          focusNode: controller.pwdFocusNode,
        ),
      ],
    );
  }
}
